export const sortTableColumns = [
  {
    title: '序号',
    width: 60,
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '位置编号',
    dataIndex: 'displayName',
    // width: 80,
    scopedSlots: { customRender: 'editable' },
    ellipsis: true
  },
  {
    title: '姓名',
    dataIndex: 'userName',
    // width: 150,
    scopedSlots: { customRender: 'addAction' }
  },
  {
    title: '单位',
    dataIndex: 'userCompanyName',
    ellipsis: true
  },
  {
    title: '会员职务',
    dataIndex: 'userPosition',
    // width: 100,
    ellipsis: true
  },
  {
    title: '签到情况',
    dataIndex: 'signStatus',
    // width: 100,
    scopedSlots: { customRender: 'signStatus' }
  },
  {
    title: '操作',
    width: 400,
    scopedSlots: { customRender: 'action' },
    // fixed: 'right',
  }
]

export const selectUserTableColumns = function(status) {
  let columns = [
    { title: '参会者信息', scopedSlots: { customRender: 'personInfo' }, width: 120 },
    { title: '单位信息', scopedSlots: { customRender: 'companyInfo' }, width: 200 },
    {
      title: '来源组织信息',
      scopedSlots: { customRender: 'sourceInfo' },
      width: 120,
    }
  ];
  return status ? [
    {
      title: '组名',
      dataIndex: 'groupName',
      width: 120,
      fixed: 'left'
    },
    {
      title: '位置编号',
      dataIndex: 'displayName',
      width: 120,
    },
    ...columns
  ] : columns
}
